//获取当前选中模块的数据
import { reactive } from 'vue'
import { useResumeJsonStore } from '@/store/resume'
import { useSelectMaterialStore } from '@/store/resume.ts'
const userResumeStore = useResumeJsonStore()
const useSelectMaterial = useSelectMaterialStore()

const selectModelItem = () => {
  const modelItem = reactive(
    userResumeStore.resumeJsonNewStore.COMPONENTS.find(
      (item) => item.keyId === useSelectMaterial.cptKeyId,
    ),
  )
  return modelItem
}

export default selectModelItem
